import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login/login'
import main from '@/components/main/main'   //主页
import ranking from '@/components/ranking/ranking'  //总排名
import rankings from '@/components/ranking/rankings'  //月排名
import user from '@/components/user/user'   //员工管理
import suggest from '@/components/suggest/suggest'   //合理化建议
import suggestdetails from '@/components/suggest/suggestDetails'   //合理化建议详情
import property from '@/components/property/property'   //便名电话
import editproperty from '@/components/property/editproperty'   //便名电话
import living from '@/components/property/living'   //生活区信息
import propertylist from '@/components/property/propertylist'   //生活区信息
import propertydetails from '@/components/property/propertydetails'   //生活区信息
import member1 from '@/components/member/member1'   //党群服务
import member2 from '@/components/member/member2'   //物业服务
import member3 from '@/components/member/member3'   //寻求帮助
import member4 from '@/components/member/member4'   //其他帮助
import memberDetails from '@/components/member/memberDetails'   //会员帮助详情
import party from '@/components/party/party'   //发布党建新时代
import editparty from '@/components/party/editparty'   //发布党建新时代
import partylist from '@/components/party/partylist'   //党建新时代列表
import banner from '@/components/party/banner'   //banner
import partydetails from '@/components/party/partydetails'   //党建详情


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/party',
      name: 'party',
      component: party
    },
    {
      path: '/editparty/:id',
      name: 'editparty',
      component: editparty
    },
    {
      path: '/partylist',
      name: 'partylist',
      component: partylist
    },
    {
      path: '/banner',
      name: 'banner',
      component: banner
    },
    {
      path: '/partydetails/:id',
      name: 'partydetails',
      component: partydetails
    },
    {
      path: '/main',
      name: 'main',
      component: main
    },
    {
      path: '/ranking',
      name: 'ranking',
      component: ranking
    },
    {
      path: '/rankings',
      name: 'rankings',
      component: rankings
    },
    {
      path: '/user',
      name: 'user',
      component: user
    },
    {
      path: '/suggest',
      name: 'suggest',
      component: suggest
    },
    {
      path: '/suggestdetails/:id',
      name: 'suggestdetails',
      component: suggestdetails
    },
    {
      path: '/property',
      name: 'property',
      component: property
    },
    {
      path: '/editproperty/:id',
      name: 'editproperty',
      component: editproperty
    },
    {
      path: '/propertylist',
      name: 'propertylist',
      component: propertylist
    },
    {
      path: '/propertydetails/:id',
      name: 'propertydetails',
      component: propertydetails
    },
    {
      path: '/living',
      name: 'living',
      component: living
    },
    {
      path: '/member1/:type',
      name: 'member1',
      component: member1
    },
    {
      path: '/member2/:type',
      name: 'member2',
      component: member2
    },
    {
      path: '/member3/:type',
      name: 'member3',
      component: member3
    },
    {
      path: '/member4',
      name: 'member4',
      component: member4
    },
    {
      path: '/memberDetails/:type/:id',
      name: 'memberDetails',
      component: memberDetails
    },
    {
      path: '*',
      name: 'main',
      component: main
    },
  ]
})
